package com.wu.common.convertion.errorcode;

public enum SongErrorCode implements IErrorCode {

    SONG_SAVE_ERROR("B000501", "添加歌曲失败 歌曲重复添加"),
    SONG_DELETE_ERROR("B000502", "删除歌曲失败"),
    SONG_UPDATE_ERROR("B000503", "修改歌曲信息失败"),
    SONG_UPDATE_IMAGE_ERROR("B000504", "修改歌曲照片失败"),
    SONG_UPDATE_URL_ERROR("B000505", "修改歌曲路径失败");
    private final String code;

    private final String message;

    SongErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
